package com.hyou.sc.zuul.feign.service.hystrix;

import java.io.Serializable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.hyou.sc.zuul.dto.form.AuthForm;
import com.hyou.sc.zuul.feign.service.AuthService;
import com.hyou.springboot.base.ResponseMessage;
import com.hyou.springboot.util.ResponseMessageUtil;

@Service("authHystrixService")
public class AuthHystrixServiceImpl implements AuthService {
    
    private static final Logger log = LoggerFactory.getLogger(AuthHystrixServiceImpl.class);
    
    @Override
    public ResponseMessage<Serializable> auth(AuthForm form) {
        log.debug("Hystrix AuthService. form : {}", form);
        return ResponseMessageUtil.genFailResult("Auth Service Busy");
    }
    
}
